package com.gyc.basics.singletion;

/**
 * @author gyc
 * @date 2017/12/26
 * 单例（懒汉）
 */
public class Singletion {
    private static Singletion singletion=null;
    private Singletion(){}

    public static Singletion getSingletion() {
        if(singletion==null){
            return singletion=new Singletion();
        }
        return singletion;

    }
}
